//
//  JQFYUserData.h
//  JQFY
//
//  Created by apple on 2017/8/28.
//  Copyright © 2017年 yannis. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JQFYUserData : NSObject<NSCoding>

@property (nonatomic, copy) NSString *accessToken;

@property (nonatomic, assign) NSInteger userId;

@property (nonatomic, copy) NSString *username;//用户名

@property (nonatomic, copy) NSString *loginName;

@property (nonatomic ,copy) NSString *securityCode;//验证码

@property (nonatomic ,copy) NSString *activityId;//对应活动id

@property (nonatomic, copy) NSString *password;

@property (nonatomic, copy) NSString *customerName;

@property (nonatomic, copy) NSString *customerId;

@property (nonatomic, assign) NSInteger customerType;

@property (nonatomic, assign) NSInteger errorCount;

@property (nonatomic, assign) BOOL isLogin;//登录信息验证

@property (nonatomic, copy) NSString *token;//登录token

@property (nonatomic, copy) NSString *alis;

@property (nonatomic, assign) BOOL isSetting;

@property (nonatomic, assign) NSInteger channelId;

+(instancetype)sharedData;

//保存
-(void)saveUserInfo;

//读取
+(JQFYUserData *)userDataInSandbox;

//清除
-(void)cleanUserInfo;

@end
